/** *******************************************************************
 * FlexDatabaseManager
 * @author  Jonnie Spratley
 * @contact jonniespratley@gmail.com
 * @internal
 ******************************************************************* */
package com.jonniespratley.flexdatabasemanager.vo
{
	import com.jonniespratley.flexdatabasemanager.utils.FlexDataManagerUtils;
		

	[Bindable]
	public class ConnectionVO
	{
	
	/* 
[
  {
    Threads_cached: "0", 
    aTimestamp: "2009-02-19T20:07:15-08:00"
  }, 
  {
    Threads_connected: "5", 
    aTimestamp: "2009-02-19T20:07:15-08:00"
  }, 
  {
    Threads_created: "331", 
    aTimestamp: "2009-02-19T20:07:15-08:00"
  }, 
  {
    Threads_running: "1", 
    aTimestamp: "2009-02-19T20:07:15-08:00"
  }
]

	 */
	 	public var aThreadConnected:String;
	 	public var aThreadCreated:String;
	 	public var aThreadRunning:String;
		public var aThreadCached:String;
		public var aTimestamp:String;	
		
		public function  ConnectionVO( obj:Object = null )
		{
			if ( obj != null )
			{
				this.aThreadConnected = obj['Threads_connected'];
				this.aThreadCreated = obj['Threads_created'];
				this.aThreadRunning = obj['Threads_running'];
				this.aThreadCached = obj['Threads_cached'];
				this.aTimestamp = FlexDataManagerUtils.formatMySQLDate( obj['aTimestamp'], 'time', ':' );
			} 			
		}
	}
}